export interface Res<T> {
    status: boolean,
    msg: string,
    data: T
}

export interface PageParam {
    current: number
    size: number
    total: number
    pages: number
}

export const getDefaultPageParam = (size?: number) => {
    return {
        current: 1,
        size: size ? size : 20,
        total: 0,
        pages: 0,
    }
}

export interface ResPage<T> extends PageParam {
    records: T[]
}
